package at.fhooe.engine.event.events;

import at.fhooe.engine.event.EventListener;

public class EntityDestroyedEvent extends Event {

	public static final String TYPE = "EntityDestroyed";
	private String m_entityId;
	private String m_entityName;
	
	public EntityDestroyedEvent(String entityId, String entityName) {
		super(TYPE);
		m_entityId = entityId;
		m_entityName = entityName;
	}
	
	public String getEntityId() {
		return m_entityId;
	}
	
	public String getEntityName() {
		return m_entityName;
	}

	@Override
	public void processEvent(EventListener eventListener) {
		((Listener) eventListener).onEntityDestroyedEvent(this);		
	}
	
	//embedded listener interface with the specific function call
	public interface Listener extends EventListener {
		public void onEntityDestroyedEvent(EntityDestroyedEvent entityDestroyedEvent);
	}

}
